package cic;

import org.junit.Assert;
import org.junit.Test;

public class EmployeeTest {

	@Test
	public void testEmployeeCreation() {

		Employee emp = new Employee("Michael", "CD0001", Department.CarDamages, Level.A);
		Employee emp2 = new Employee("Jack", "CD0002", Department.CarDamages, Level.B);
		Employee emp3 = new Employee("Victoria", "FN0001", Department.Finance, Level.C);
		
		try{
			
			Assert.assertEquals("Michael", emp.getName());
			Assert.assertEquals("CD0001", emp.getID());
			Assert.assertEquals(Department.CarDamages, emp.getDepartment());
			Assert.assertEquals(Level.A, emp.getLevel());
			
			Assert.assertEquals("Jack", emp2.getName());
			Assert.assertEquals("CD0002", emp2.getID());
			Assert.assertEquals(Department.CarDamages, emp2.getDepartment());
			Assert.assertEquals(Level.B, emp2.getLevel());
			
			Assert.assertEquals("Victoria", emp3.getName());
			Assert.assertEquals("FN0001", emp3.getID());
			Assert.assertEquals(Department.Finance, emp3.getDepartment());
			Assert.assertEquals(Level.C, emp3.getLevel());
			
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}

}
